package com.lagou.webwork.factory;

import com.lagou.webwork.dao.ClassDao;
import com.lagou.webwork.dao.ClassDaoImp;

/**
 * @author sjp
 * @date 2021/6/4 15:24
 * @description
 */
public class ClassFactory {
    private static ClassDao classDao;
    static {
        classDao = new ClassDaoImp();
    }

    /**
     * 获取ClassDao对象
     * @return
     */
    public static ClassDao getClassDao(){
        return classDao;
    }
}
